﻿namespace TestUp.Models.TestWorkers.TestsModel
{
    public class InputTest : TestQuestion
    {
        public string QuestionText { get; set; }
        public string Answer { get; set; }

        public InputTest()
        {
            TestType = TestTypes.InputTest;
        }

        public bool Check(string externalAnswer)
        {
            return Answer.Trim() == externalAnswer.Trim();
        }
    }
}